<template>
    <div>
        Usre组件 --{{ msg }}---{{ $store.state.msg }}
    </div>
</template>

<script>

import { computed, defineComponent } from 'vue';
import { useStore } from 'vuex'
export default defineComponent({
    setup() {
        const store = useStore()
        return {
            msg: computed(() => {
                return store.state.msg
            })
        }
    }
})
</script>

<style lang="scss"></style>